package coml.jiyun.hp.jiaohuafei.ui.activity;


import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;

import coml.jiyun.hp.jiaohuafei.R;

public class SucceedActivity extends AppCompatActivity {

    private TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_succeed);
        initView();
    }

    private void initView() {
        tv = (TextView) findViewById(R.id.tv);
        Intent intent = getIntent();
        int a = intent.getIntExtra("a", 0);
        Log.d(TAG, "initView: "+a);
        tv.setText(String.valueOf(a));
    }

    private static final String TAG = "SucceedActivity";
}